#define  _CRT_SECURE_NO_WARNINGS

#include"stack.h"
#include"queue.h"
void testStack() {
	Stack st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	int m = stackTop(&st);
	printf("%d", m);
}

void testQueue() {
	queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	
	while (!QueueEmpty(&q)) {
		printf("%d ", QueueFront(&q));
		QueuePop(&q);
		
	}
	QueueDestory(&q);
}

int main() {
	testQueue();
	return 0;
}